package com.hk.patterntrains.factorypattern.abstractfactory;

public class Pizza {
    private MaterialTypeA typeA;
    private MaterialTypeB typeB;


    public MaterialTypeA getTypeA() {
        return typeA;
    }

    public void setTypeA(MaterialTypeA typeA) {
        this.typeA = typeA;
    }

    public MaterialTypeB getTypeB() {
        return typeB;
    }

    public void setTypeB(MaterialTypeB typeB) {
        this.typeB = typeB;
    }


    @Override
    public String toString() {
        return "Pizza{" +
                "typeA=" + typeA +
                ", typeB=" + typeB +
                '}';
    }

    public void cut(){
        System.out.println("Cutting:"+toString());
    }
}
